package com.gjp.controller;

import com.gjp.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by 郭金鹏 on 2018/1/27.
 */
@RestController
public class ConsumerController {

    @Autowired
    HelloService helloService;

        @RequestMapping("/consumer")
    public String helloConsumer(String name){
        return helloService.helloService(name);
    }
}
